package com.yzg.service;

import com.yzg.pojo.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/14 20:49
**/
public interface PermissionService extends IService<Permission>{

    //给角色分配权限
    void saveRolePermissionRealtion(String roleId, String[] permissionIds);
    //根据角色获取菜单
    List<Permission> selectAllMenu(String roleId);
    //获取所有菜单
    List<Permission> queryAllMenu();
    //递归删除菜单
    void removeChildById(String id);
}
